/*
 * @Description:
 * @Version: 1.0
 * @Autor: haozhuang
 * @Date: 2020-05-07 15:56:52
 * @LastEditors: haozhuang
 * @LastEditTime: 2020-05-11 17:08:08
 */
import request from '../utils/request'

// 分享给我的
export function getShareToMy(params) {
  return request({
    url: '/file/get/share/to/my',
    method: 'get',
    params
  })
}

// 我分享的
export function getMyShare(params) {
  return request({
    url: '/file/get/my/share',
    method: 'get',
    params
  })
}

// 取消分享
export function deleteMyShare(id, to_userid) {
  return request({
    url: '/file/delete/my/share/' + id,
    method: 'get',
    params: {
      to_userid
    }
  })
}

export function getShareToMyStatus() {
  return request({
    url: '/file/get/share/to/my/status',
    method: 'get'
  })
}

export function updateShareToMyStatus(id, userid) {
  return request({
    url: '/file/update/to/my/share/' + id,
    method: 'get',
    params: { userid }
  })
}
